namespace Jumpton.SFA.Server.Entity
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Jumpton.Persistent;
    using System.Data;
    using System.Runtime.Serialization;


    [System.SerializableAttribute()]
    [Map("SystemConfig")]
    public class SystemConfig : ObjectRow
    {

        public SystemConfig()
        {
        }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="dataRow">DataTable 中的一行数据</param>
        /// <param name="objectTable">存储当前对象的数据表格</param>
        public SystemConfig(System.Data.DataRow dataRow, ObjectTable parent) :
            base(dataRow, parent)
        {
        }

        /// <summary>
        /// 供反序列化使用的构造函数
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected SystemConfig(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) :
            base(info, context)
        {
        }

        [Key("ID", true, true)]
        public int ID
        {
            get
            {
                return (System.Int32)GetValue("ID");
            }
            set
            {
                SetValue("ID", value);
            }
        }

        [Field("Code")]
        public string Code
        {
            get
            {
                return (System.String)GetValue("Code");
            }
            set
            {
                SetValue("Code", value);
            }
        }
        [Field("Key1")]
        public string Key1
        {
            get
            {
                return (System.String)GetValue("Key1");
            }
            set
            {
                SetValue("Key1", value);
            }
        }
        [Field("Key2")]
        public string Key2
        {
            get
            {
                return (System.String)GetValue("Key2");
            }
            set
            {
                SetValue("Key2", value);
            }
        }
        [Field("Value")]
        public string Value
        {
            get
            {
                return (System.String)GetValue("Value");
            }
            set
            {
                SetValue("Value", value);
            }
        }

        [Field("Active")]
        public bool Active
        {
            get
            {
                return (System.Boolean)GetValue("Active");
            }
            set
            {
                SetValue("Active", value);
            }
        }

        [Field("DOMAIN_ID")]
        public decimal DOMAINID
        {
            get
            {
                return (System.Decimal)GetValue("DOMAINID");
            }
            set
            {
                SetValue("DOMAINID", value);
            }
        }

        [Field("LAST_UPDATE_TIME")]
        public decimal LAST_UPDATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("LAST_UPDATE_TIME");
            }
            set
            {
                SetValue("LAST_UPDATE_TIME", value);
            }
        }

        [Field("LAST_UPDATER")]
        public string LAST_UPDATER
        {
            get
            {
                return (System.String)GetValue("LAST_UPDATER");
            }
            set
            {
                SetValue("LAST_UPDATER", value);
            }
        }

        [Field("CREATE_TIME")]
        public decimal CREATE_TIME
        {
            get
            {
                return (System.Decimal)GetValue("CREATE_TIME");
            }
            set
            {
                SetValue("CREATE_TIME", value);
            }
        }
    }
}
